﻿using Protocol;
using System;
using System.Collections.Generic;
using System.Text;
using Atom.NetFrame;

namespace Atom.Logic.Other
{
    public class OtherHandler : AbsOnceHandler, HandleInterface
    {
        public void ClientClose(UserToken ut, string error)
        {

        }

        public void ClientConnect(UserToken ut)
        {

        }

        public void MessageReceive(UserToken ut, SocketModel message)
        {
            switch (message.Command)
            {
                case OtherProtocol.PING_REQ:
                    OnPingReq(ut);
                    break;
            }
        }
        private void OnPingReq(UserToken ut)
        {
            //SocketModel sm = new SocketModel(GameProtocol.TYPE_OTHER, 0, OtherProtocol.PING_RES, null);
            //ut.SendMsg(sm.Encode());

        }


    }
}
